package com.oamicnet.serviceone.server.mq;

import org.springframework.cloud.bus.event.RemoteApplicationEvent;

public class MyCustomEvent extends RemoteApplicationEvent {
    private String message;

    // 必须有无参构造
    public MyCustomEvent() {}

    public MyCustomEvent(Object source, String originService, String destinationService, String message) {
        super(source, originService, destinationService);
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}
